package com.goalias.feign.domain.dto;

import com.goalias.feign.domain.Notice;
import lombok.Builder;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Data
@Builder
public class EmailDto extends Notice implements Serializable {
    @NotEmpty(message = "收件人不能为空")
    private String to;
    @NotEmpty(message = "主题不能为空")
    private String subject;
    @NotEmpty(message = "内容不能为空")
    private String content;
}
